package cn.edu.gdut.deepcode.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.concurrent.TimeUnit;

/**
 * <p>
 *     快照任务配置
 * </p>
 *
 * @Author: 暮倦
 * @Since: 2025-04-13  10:52
 * @Version: 1.0.0
 */
@Data
@ConfigurationProperties("dc.snapshot-task")
public class SnapshotTaskProperties {
    private int core;
    private int maxSize;
    private long lifeTime;
    private TimeUnit timeUnit;
    private int executorTaskQueueSize=Integer.MAX_VALUE;
    private int managerTaskQueueSize=Integer.MAX_VALUE;
    private int snapshotGenerationTaskQueueSize =Integer.MAX_VALUE;
}


